package com.start.manager.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.start.manager.domain.common.PowerResult;
import com.start.manager.domain.entity.Button;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Lijian
 * @since 2020-01-07
 */
public interface ButtonDao extends BaseMapper<Button> {


    /**
     * 获取该角色小的它的权限
     * @param buttonIdList
     * @return
     */
    List<PowerResult> getAllPower(@Param("buttonIdList") Set<Integer> buttonIdList);
}
